import pygame
from pygame.locals import *

class MainMenu:
	def __init__(self, game_app, py_screen):
		print "menu create"
		self.screen = py_screen
		self.ws = game_app
	def Update(self):
		for event in pygame.event.get():
			if event.type == QUIT:
				print "esc down"
				self.ws.mainLoop = False
			if event.type == KEYDOWN:
				self.ws.SetCurrentScene(1)
				return
		self.screen.fill(self.windows_bgcolor)
		pygame.display.update()